<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>康不离商城</title>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
    <script>
      (function(doc,win){
        let docEle = doc.documentElement;
        let resizeEvent = 'orientationchange' in win ? 'orientationchange' : 'resize';
        let eventHandler = function(){
          let clientWidth = docEle.clientWidth;
          if (!clientWidth) return;
          docEle.style.fontSize = 100 * (clientWidth / 750) + 'px';
        }
        
        if (!doc.addEventListener) return;
        win.addEventListener(resizeEvent, eventHandler, false);
        doc.addEventListener('DOMContentLoaded', eventHandler, false);
      })(document,window);
    </script>
  </body>
</html>
